/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chameleon.view.command;

import chameleon.model.NuGatManager.NuGatManager;
import chameleon.view.input.Input;

/**
 *
 * @author simon
 */
class RestoreInitStrategy extends Command {

    public RestoreInitStrategy(Input input, boolean help) {
        super(input, false, help);
    }

    @Override
    public Input execute() {
        if (help_){
            outputManager_.displayString("This command restore the strategy computed by NuGaT.\n"
                    + "syntax : restore_init_strategy [ | -h]\n");
        }
        else{
            InternalCheckCommand check = new InternalCheckCommand(input_, 3);
            if (check.isOk()){
                NuGatManager manager = (NuGatManager) input_.getManager();
                manager.restoreInitStrategy();
            }
        }
        
        return input_;
    }
    
}
